<template>
  <div id="app">
    <router-view />
  </div>
</template>
<script>
export default {
  created() {
    const data = [
      {
        id: 1,
        label: "111",
        fileList: [{ file: "src" }],
        formVal: "",
      },
      {
        id: 2,
        label: "222",
        fileList: [{ file: "src" }],
        formVal: "",
      },
      {
        id: 3,
        label: "333",
        fileList: [{ file: "src" }],
        formVal: "",
      },
    ];
    var fd = new FormData();
    data.forEach((item, index) => {
      fd.append("file" + index, item.fileList[0].file);
      console.log("file" + index, item.fileList[0].file)
    });
    console.log(fd);
  },
};
</script>
<style lang="less">
html,
body {
  padding: 0;
  margin: 0;
  font-size: 12px;
}
</style>
